import type { IDefaultConfig } from '@shared/constans/types/configType'
import { useRouter } from 'vue-router';


export function ShowHome(config_data: IDefaultConfig | {}, customizeTheme: any) {
    const router = useRouter();
    const data = config_data as IDefaultConfig;
    customizeTheme.setSystemConfig(data.system_config)
    customizeTheme.setHttpProxy(data.perf.http_proxy)
    router.push({name: 'login'})
    
}
